package com.study.dao; 

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.study.entity.Role;

/**  
 *  操作数据库的dao层
 */  

public interface RoleDao  
{  
    
    //增加一个Role
    public void saveRole(Role role);
	
	//根据id查询Role
    public Role getRoleById(String id);
	
	
	//分页条件查询Role
	public List<Role> listRole(@Param("role") Role role, @Param("from") String from, @Param("number") String number);
	
	public long getRoleCount(@Param("role") Role role);
	
	
	
	
	//根据id删除Role
	public boolean removeRoleById(String id);
	
	//更新Role
	public void updateRole(Role role);
	
	
	
	
	
}